<%@ Page Language="C#" MasterPageFile="~/Administration/main.master" AutoEventWireup="true"
    CodeFile="MessageTemplates.aspx.cs" Inherits="Tathata.Web.Administration.Administration_MessageTemplates" %>

<asp:Content ID="c1" ContentPlaceHolderID="cph1" runat="Server">
    <h4>
        Message templates</h4>
    <br />
    <asp:GridView ID="gvMessageTemplates" runat="server" AutoGenerateColumns="False"
        Width="100%">
        <Columns>
            <asp:BoundField DataField="MessageTemplateID" HeaderText="MessageTemplateID" Visible="False">
            </asp:BoundField>
            <asp:TemplateField HeaderText="Name" ItemStyle-Width="60%">
                <ItemTemplate>
                    <a href="MessageTemplateDetails.aspx?MessageTemplateID=<%#Eval("MessageTemplateID")%>">
                        <%#Eval("Name")%>
                    </a>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Edit" HeaderStyle-HorizontalAlign="Center" ItemStyle-Width="40%"
                ItemStyle-HorizontalAlign="Center">
                <ItemTemplate>
                    <a href="MessageTemplateDetails.aspx?MessageTemplateID=<%#Eval("MessageTemplateID")%>">
                        Edit</a>
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
    </asp:GridView>
    <br>
</asp:Content>
